require "migration_helpers"
class CreateUsers < ActiveRecord::Migration
  extend MigrationHelpers
  def self.up
    create_table :users do |t|
      t.column :name, :string
      t.column :password, :string
      t.column :about, :text
      t.column :email, :string
      t.column :role_id, :integer
    end
    foreign_key(:users, :role_id, :roles)
  end

  def self.down
    drop_table :users
  end
end
